﻿using System.Collections.Generic;
using MessagePack;

namespace Server.Proto
{
    [MessagePackObject(true)]
    public sealed class RoleBag : MessageObject
    {
        /// <summary>
        /// 拥有的物品字典
        /// </summary>
        public Dictionary<int, ulong> ItemMap { get; set; }
        
        public override void OnRecycle()
        {
            ItemMap?.Clear();
        }
    }
}